import Layout from '@/layout'

export default {
  path: '/member',
  component: Layout,
  redirect: '/member/list',
  name: 'User',
  meta: { title: '会员管理', icon: 'peoples', noCache: true },
  children: [
    // {
    //   path: 'create',
    //   // name: 'MemberCreate',
    //   component: () => import('@/views/member/create'),
    //   meta: { title: '添加会员', icon: 'edit', noCache: true }
    // },
    // {
    //   path: 'edit/:id',
    //   component: () => import('@/views/member/edit'),
    //   meta: { title: '编辑会员', icon: 'edit', noCache: true },
    //   hidden: true
    // },
    {
      path: 'team/:id',
      component: () => import('@/views/member/team'),
      meta: { title: '团队树', icon: 'edit', noCache: true },
      hidden: true
    },
    // {
    //   path: 'refill/:id',
    //   component: () => import('@/views/member/refill'),
    //   meta: { title: '充值', icon: 'edit', noCache: true },
    //   hidden: true
    // },
    {
      path: 'list',
      name: 'MemberList',
      component: () => import('@/views/member/list'),
      meta: { title: '会员列表', icon: 'list', noCache: true }
    },
    // {
    //   path: 'level',
    //   name: 'MemberLevel',
    //   component: () => import('@/views/member/level'),
    //   meta: { title: '等级列表', icon: 'list', noCache: true }
    // },
    // {
    //   path: 'set',
    //   name: 'MemberSet',
    //   component: () => import('@/views/member/set'),
    //   meta: { title: '参数设置', icon: 'list', noCache: true }
    // },
    // {
    //   path: 'z',
    //   name: 'MemberZ',
    //   component: () => import('@/views/member/z'),
    //   meta: { title: '绩效列表', icon: 'list', noCache: true },
    //   hidden: true
    // },
    // {
    //   path: 'city/:id',
    //   name: 'MemberCity',
    //   component: () => import('@/views/member/area/city'),
    //   meta: { title: '指定市代', icon: 'list', noCache: true },
    //   hidden: true
    // },
    // {
    //   path: 'area/:id',
    //   name: 'MemberArea',
    //   component: () => import('@/views/member/area/area'),
    //   meta: { title: '指定区代', icon: 'list', noCache: true },
    //   hidden: true
    // },
    // {
    //   path: 'r-list',
    //   name: 'MemberRefillList',
    //   component: () => import('@/views/member/refill-list'),
    //   meta: { title: '余额充值记录', icon: 'list', noCache: true }
    // },
    // {
    //   path: 's-list',
    //   name: 'MemberRefillStore',
    //   component: () => import('@/views/member/refill-store'),
    //   meta: { title: '云仓充值记录', icon: 'list', noCache: true }
    // },
    {
      path: 'commission/:user_id',
      name: 'MemberCommission',
      component: () => import('@/views/member/commission'),
      meta: { title: '佣金列表', icon: 'list', noCache: true },
      hidden: true
    },
    {
      path: 'consume/:user_id',
      name: 'MemberConsume',
      component: () => import('@/views/member/consume'),
      meta: { title: '消费列表', icon: 'list', noCache: true },
      hidden: true
    },
    {
      path: 'balance/:id?',
      component: () => import('@/views/member/balance'),
      meta: { title: '余额明细', icon: 'list', noCache: true }
    },
    {
      path: 'store/:id?',
      component: () => import('@/views/member/store'),
      meta: { title: '云仓明细', icon: 'list', noCache: true },
      hidden: true
    },
    // {
    //   path: 'reg-area',
    //   component: () => import('@/views/member/reg_area'),
    //   meta: { title: '区代申请列表', icon: 'list', noCache: true }
    // }
  ]
}
